Skip to contentSkip to conversation

python3-binwalk: add recipe for version 2.3.3

PATCH In review Tomasz Żyjewski 3 participants 8 messages Nov 25, 2022 – Dec 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-binwalk: add recipe for version 2.3.3

Install binwalk utility

---
 .../python/python3-binwalk_2.3.3.bb             | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb
meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb new file +17 -0
new file mode 100644
index 000000000000..362efa275148
@@ -0,0 +1,17 @@
+SUMMARY = "Firmware analysis tool"
+DESCRIPTION = "This package contains Python Binwalk tool. Binwalk is a fast, \
+easy to use tool for analyzing, reverse engineering, and extracting firmware \
+images."
+HOMEPAGE = "https://github.com/ReFirmLabs/binwalk"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=65bbee055d3ea3bfc475f07aecf4de64"
+
+SRC_URI = "git://github.com/ReFirmLabs/binwalk;protocol=https;branch=master"
+
+SRCREV = "fa0c0bd59b8588814756942fe4cb5452e76c1dcd"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3
+
+RDEPENDS:${PN} += "python3-core"
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 python3-uefi-firmware: add recipe for version 1.9

Install uefi-firmware-parser tool

---
 .../python/python3-uefi-firmware_1.9.bb         | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb new file +17 -0
new file mode 100644
index 000000000000..ba3124b36e60
@@ -0,0 +1,17 @@
+SUMMARY = "Various data structures and parsing tools for UEFI firmware."
+DESCRIPTION = "This package contains Python UEFI firmware parser tool. The \
+UEFI firmware parser is a simple module and set of scripts for parsing, \
+extracting, and recreating UEFI firmware volumes. This includes parsing \
+modules for BIOS, OptionROM, Intel ME and other formats too."
+HOMEPAGE = "https://github.com/theopolis/uefi-firmware-parser"
+AUTHOR = "Teddy Reed <[email protected]>"
+LICENSE = "BSD-2-Clause & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;md5=90fa5bae1547550f1c1993f651eda955"
+
+SRC_URI = "https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-${PV}.tar.gz"
+SRC_URI[md5sum] = "ee5011b4d0bcb0eb7c06295e0107894f"
+SRC_URI[sha256sum] = "234119dd92780c67cce3b664e86119c41d0b2af188d7f372b69789b32c5d5cd0"
+
+S = "${WORKDIR}/uefi_firmware-${PV}"
+
+inherit setuptools3
Signature · 1 line
2.25.1
#2 lore raw

Re: [oe] [meta-python][PATCH 2/2] python3-uefi-firmware: add recipe for version 1.9

Quoted 29 lines · tomzy

Install uefi-firmware-parser tool

---
 .../python/python3-uefi-firmware_1.9.bb         | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-uefi-firmware_1.9.bb

(quoted diff) +0 -0

python3-uefi-firmware_1.9.bb b/meta-python/recipes-devtools/python/ python3-uefi-firmware_1.9.bb
new file mode 100644
index 000000000000..ba3124b36e60

meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb new file +2 -0
@@ -0,0 +1,17 @@
+SUMMARY = "Various data structures and parsing tools for UEFI firmware."
+DESCRIPTION = "This package contains Python UEFI firmware parser tool.

The \

meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb new file +9 -0
+UEFI firmware parser is a simple module and set of scripts for parsing, \
+extracting, and recreating UEFI firmware volumes. This includes parsing \
+modules for BIOS, OptionROM, Intel ME and other formats too."
+HOMEPAGE = "https://github.com/theopolis/uefi-firmware-parser"
+AUTHOR = "Teddy Reed <[email protected]>"
+LICENSE = "BSD-2-Clause & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;md5=90fa5bae1547550f1c1993f651eda955"
+
+SRC_URI = "
Quoted 3 lines

https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-${PV}.tar.gz
"

If you’re fetching from pythonhosted, you could very likely simplify the recipe by inheriting pypi bbclass

+SRC_URI[md5sum] = "ee5011b4d0bcb0eb7c06295e0107894f"

These days, we only really use the sha256sum

Quoted 22 lines

+SRC_URI[sha256sum] = "234119dd92780c67cce3b664e86119c41d0b2af188d7f372b69789b32c5d5cd0"

meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb new file +4 -1
+
+S = "${WORKDIR}/uefi_firmware-${PV}"
+
+inherit setuptools3
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#99729):
https://lists.openembedded.org/g/openembedded-devel/message/99729
Mute This Topic: https://lists.openembedded.org/mt/95252447/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw

Re: [meta-python][PATCH 2/2] python3-uefi-firmware: add recipe for version 1.9

Quoted 51 lines · tomzy

Install uefi-firmware-parser tool

---
.../python/ python3-uefi-firmware_1.9.bb (
http://python3-uefi-firmware_1.9.bb ) | 17 +++++++++++++++++

1 file changed, 17 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/ python3-uefi-firmware_1.9.bb ( http://python3-uefi-firmware_1.9.bb )

python3-uefi-firmware_1.9.bb renamed from meta-python/recipes-devtools/python/ +0 -0

( http://python3-uefi-firmware_1.9.bb ) b/meta-python/recipes-devtools/python/ python3-uefi-firmware_1.9.bb ( http://python3-uefi-firmware_1.9.bb ) new file mode 100644
index 000000000000..ba3124b36e60

meta-python/recipes-devtools/python/ python3-uefi-firmware_1.9.bb ( new file +0 -0

http://python3-uefi-firmware_1.9.bb )

meta-python/recipes-devtools/python/ python3-uefi-firmware_1.9.bb ( new file +2 -0
@@ -0,0 +1,17 @@
+SUMMARY = "Various data structures and parsing tools for UEFI firmware."
+DESCRIPTION = "This package contains Python UEFI firmware parser tool.

The \

meta-python/recipes-devtools/python/ python3-uefi-firmware_1.9.bb ( new file +9 -0
+UEFI firmware parser is a simple module and set of scripts for parsing, \
 
+extracting, and recreating UEFI firmware volumes. This includes parsing \
 
+modules for BIOS, OptionROM, Intel ME and other formats too."
+HOMEPAGE = " https://github.com/theopolis/uefi-firmware-parser "
+AUTHOR = "Teddy Reed < teddy@... >"
+LICENSE = "BSD-2-Clause & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;md5=90fa5bae1547550f1c1993f651eda955"
 
+
+SRC_URI = " https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-${PV}.tar.gz

(
https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-$%7BPV%7D.tar.gz
) "

If you’re fetching from  pythonhosted, you could very likely simplify the recipe by inheriting pypi bbclass

Quoted 8 lines

+SRC_URI[md5sum] = "ee5011b4d0bcb0eb7c06295e0107894f"

These days, we only really use the sha256sum +SRC_URI[sha256sum] = "234119dd92780c67cce3b664e86119c41d0b2af188d7f372b69789b32c5d5cd0" + +S = "${WORKDIR}/uefi_firmware-${PV}" + +inherit setuptools3 -- 2.25.1

Used git fetcher here, I just send PATCH V2, not sure if it visible on mailing list.

#4 lore raw

Re: [oe] [meta-python][PATCH 2/2] python3-uefi-firmware: add recipe for version 1.9

Quoted 57 lines · tomzy
    On Fri, Nov 25, 2022 at 3:44 AM tomzy <tomasz.zyjewski@...
    <mailto:tomasz.zyjewski@...>> wrote:

    Install uefi-firmware-parser tool

    Signed-off-by: Tomasz Żyjewski <tomasz.zyjewski@...
    <mailto:tomasz.zyjewski@...>>
    ---
      .../python/python3-uefi-firmware_1.9.bb
    <http://python3-uefi-firmware_1.9.bb>         | 17 +++++++++++++++++
      1 file changed, 17 insertions(+)
      create mode 100644
    meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
    <http://python3-uefi-firmware_1.9.bb>

    diff --git
    a/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
    <http://python3-uefi-firmware_1.9.bb>
    b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
    <http://python3-uefi-firmware_1.9.bb>
    new file mode 100644
    index 000000000000..ba3124b36e60
    --- /dev/null
    +++
    b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
    <http://python3-uefi-firmware_1.9.bb>
    @@ -0,0 +1,17 @@
    +SUMMARY = "Various data structures and parsing tools for UEFI
    firmware."
    +DESCRIPTION = "This package contains Python UEFI firmware parser
    tool. The \
    +UEFI firmware parser is a simple module and set of scripts for
    parsing, \
    +extracting, and recreating UEFI firmware volumes. This includes
    parsing \
    +modules for BIOS, OptionROM, Intel ME and other formats too."
    +HOMEPAGE = "https://github.com/theopolis/uefi-firmware-parser
    <https://github.com/theopolis/uefi-firmware-parser>"
    +AUTHOR = "Teddy Reed <teddy@... <mailto:teddy@...>>"
    +LICENSE = "BSD-2-Clause & BSD-3-Clause"
    +LIC_FILES_CHKSUM =
    "file://setup.py;md5=90fa5bae1547550f1c1993f651eda955"
    +
    +SRC_URI =
    "https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-${PV}.tar.gz <https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-$%7BPV%7D.tar.gz>"

    If you’re fetching from  pythonhosted, you could very likely
    simplify the recipe by inheriting pypi bbclass

    +SRC_URI[md5sum] = "ee5011b4d0bcb0eb7c06295e0107894f"

    These days, we only really use the sha256sum
    +SRC_URI[sha256sum] =
    "234119dd92780c67cce3b664e86119c41d0b2af188d7f372b69789b32c5d5cd0" +
    +S = "${WORKDIR}/uefi_firmware-${PV}" + +inherit setuptools3 -- 2.25.1
Quoted 1 line

Used git fetcher here, I just send PATCH V2, not sure if it visible on mailing list.

Its not. Where did you send it ?

Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99869): https://lists.openembedded.org/g/openembedded-devel/message/99869
Mute This Topic: https://lists.openembedded.org/mt/95252447/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#5 lore raw

Re: [meta-python][PATCH 2/2] python3-uefi-firmware: add recipe for version 1.9

Quoted 62 lines · Khem Raj
Quoted 59 lines · tomzy

On Fri, Nov 25, 2022 at 3:44 AM tomzy <tomasz.zyjewski@... <mailto:tomasz.zyjewski@...>> wrote:

Install uefi-firmware-parser tool

<mailto:tomasz.zyjewski@...>>
---
.../python/python3-uefi-firmware_1.9.bb
< http://python3-uefi-firmware_1.9.bb >         | 17 +++++++++++++++++

1 file changed, 17 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb < http://python3-uefi-firmware_1.9.bb >

diff --git a/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb < http://python3-uefi-firmware_1.9.bb > b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb < http://python3-uefi-firmware_1.9.bb >
new file mode 100644
index 000000000000..ba3124b36e60
--- /dev/null
+++
b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb < http://python3-uefi-firmware_1.9.bb >

(quoted diff) +1 -0
@@ -0,0 +1,17 @@
+SUMMARY = "Various data structures and parsing tools for UEFI

firmware."
+DESCRIPTION = "This package contains Python UEFI firmware parser tool. The \
+UEFI firmware parser is a simple module and set of scripts for parsing, \
+extracting, and recreating UEFI firmware volumes. This includes parsing \

(quoted diff) +2 -0
+modules for BIOS, OptionROM, Intel ME and other formats too."
+HOMEPAGE = " https://github.com/theopolis/uefi-firmware-parser

< https://github.com/theopolis/uefi-firmware-parser>"

(quoted diff) +3 -0
+AUTHOR = "Teddy Reed <teddy@... <mailto:teddy@...>>"
+LICENSE = "BSD-2-Clause & BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://setup.py;md5=90fa5bae1547550f1c1993f651eda955"

(quoted diff) +2 -0
+
+SRC_URI =

" https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-
${PV}.tar.gz < https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-
$%7BPV%7D.tar.gz>"

If you’re fetching from  pythonhosted, you could very likely simplify the recipe by inheriting pypi bbclass

+SRC_URI[md5sum] = "ee5011b4d0bcb0eb7c06295e0107894f"

These days, we only really use the sha256sum +SRC_URI[sha256sum] = "234119dd92780c67cce3b664e86119c41d0b2af188d7f372b69789b32c5d5cd0" + +S = "${WORKDIR}/uefi_firmware-${PV}" + +inherit setuptools3 -- 2.25.1

Quoted 4 lines
Quoted 2 lines

Used git fetcher here, I just send PATCH V2, not sure if it visible on mailing list.

Its not. Where did you send it ?

I must had something wrong with my email settings. Now it is sent. Just pushed V3 because of typo in subject-prefix.

uefi-firmware: https://lists.openembedded.org/g/openembedded-devel/message/99883

binwalk: https://lists.openembedded.org/g/openembedded-devel/message/99882

#6 lore raw
In reply to Tomasz Żyjewski
Quoted 27 lines · tomzy

Install binwalk utility

---
 .../python/python3-binwalk_2.3.3.bb             | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-binwalk_2.3.3.bb

meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb new file +2 -0
new file mode 100644
index 000000000000..362efa275148
@@ -0,0 +1,17 @@
+SUMMARY = "Firmware analysis tool"
+DESCRIPTION = "This package contains Python Binwalk tool. Binwalk is a

fast, \
+easy to use tool for analyzing, reverse engineering, and extracting firmware \

meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb new file +6 -0
+images."
+HOMEPAGE = "https://github.com/ReFirmLabs/binwalk"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=65bbee055d3ea3bfc475f07aecf4de64"
+
+SRC_URI = "git://
Quoted 2 lines

github.com/ReFirmLabs/binwalk;protocol=https;branch=master" +

Thank you for fetching the git repo which is much newer (and with better security apparently) than the pypi version.

Quoted 22 lines
meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb new file +7 -1
+SRCREV = "fa0c0bd59b8588814756942fe4cb5452e76c1dcd"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3
+
+RDEPENDS:${PN} += "python3-core"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#99728):
https://lists.openembedded.org/g/openembedded-devel/message/99728
Mute This Topic: https://lists.openembedded.org/mt/95252446/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#7 lore raw
Quoted 40 lines · tomzy

Install binwalk utility

---
.../python/ python3-binwalk_2.3.3.bb ( http://python3-binwalk_2.3.3.bb ) | 17 +++++++++++++++++

1 file changed, 17 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/ python3-binwalk_2.3.3.bb ( http://python3-binwalk_2.3.3.bb )

python3-binwalk_2.3.3.bb renamed from meta-python/recipes-devtools/python/ +0 -0

( http://python3-binwalk_2.3.3.bb ) b/meta-python/recipes-devtools/python/ python3-binwalk_2.3.3.bb ( http://python3-binwalk_2.3.3.bb ) new file mode 100644
index 000000000000..362efa275148

meta-python/recipes-devtools/python/ python3-binwalk_2.3.3.bb ( new file +0 -0

http://python3-binwalk_2.3.3.bb )

meta-python/recipes-devtools/python/ python3-binwalk_2.3.3.bb ( new file +2 -0
@@ -0,0 +1,17 @@
+SUMMARY = "Firmware analysis tool"
+DESCRIPTION = "This package contains Python Binwalk tool. Binwalk is a

fast, \
+easy to use tool for analyzing, reverse engineering, and extracting firmware \

meta-python/recipes-devtools/python/ python3-binwalk_2.3.3.bb ( new file +6 -0
+images."
+HOMEPAGE = " https://github.com/ReFirmLabs/binwalk "
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=65bbee055d3ea3bfc475f07aecf4de64"
+
+SRC_URI = "git:// github.com/ReFirmLabs/binwalk;protocol=https;branch=master

( http://github.com/ReFirmLabs/binwalk;protocol=https;branch=master ) " +

Quoted 3 lines

Thank you for fetching the git repo which is much newer (and with better security apparently) than the pypi version.

I will do the same with the python3-uefi-firmware recipe

Quoted 6 lines

+SRCREV = "fa0c0bd59b8588814756942fe4cb5452e76c1dcd" + +S = "${WORKDIR}/git" + +inherit setuptools3 + +RDEPENDS:${PN} += "python3-core" -- 2.25.1